
      service2({
        url: '/api/mgsystem/getType',
        method: 'get',
        params: this.searchData
      }).then(re => {
        var tree = []
        var map = {}
        re.data.forEach(element => {
          map[element.id] = element
        })
        re.data.forEach(element => {
          if (element.fromid === 0) {
            this.$set(element, 'children', [])
            tree.push(element)
          } else {
            var from = map[element.fromid]
            if (from) {
              if (from.children == undefined) {
                this.$set(from, 'children', [])
              }
              from.children.push(element);
            }
          }
        })
        this.tableData = tree
      })